package cn.pink.gamesrv.human;
                    
import cn.pink.core.Service;
import cn.pink.core.gen.proxy.RPCImplBase;
import cn.pink.gamesrv.RPCProxy.HumanObjectServiceProxy.EnumCall;
import cn.pink.core.support.function.*;
import cn.pink.core.CallPoint;
import cn.pink.core.support.Param;
import cn.pink.core.gen.IronGenFile;

@SuppressWarnings("unchecked")
@IronGenFile
public final class HumanObjectServiceImpl extends RPCImplBase {
	
	/**
	 * 获取函数指针
	 */
	@Override	
	public Object getMethodFunction(Service service, int methodKey) {
		HumanObjectService serv = (HumanObjectService)service;
		switch (methodKey) {
			case EnumCall.CN_PINK_GAMESRV_HUMAN_HUMANOBJECTSERVICE_CONNCLOSED_STRING: {
				return (IronFunction1<String>)serv::connClosed;
			}
			case EnumCall.CN_PINK_GAMESRV_HUMAN_HUMANOBJECTSERVICE_DEFAULTHANDLER_STRING_BYTES: {
				return (IronFunction2<String, byte[]>)serv::defaultHandler;
			}
			default: break;
		}
		
		return null;
	}

}
